package com.cgwx.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.sql.Timestamp;

@Data
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("fs_download")
@ApiModel(value="Download", description="")
public class Download implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    private String account;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp time;

    private String entityName;

    private String status;

    private String location;

    private String url;

    private String column;

    private String sort;

    @Override
    public String toString() {
        return "Download{" +
                "id='" + id + '\'' +
                ", account='" + account + '\'' +
                ", time=" + time +
                ", entityName='" + entityName + '\'' +
                ", status='" + status + '\'' +
                ", location='" + location + '\'' +
                ", url='" + url + '\'' +
                ", column='" + column + '\'' +
                ", sort='" + sort + '\'' +
                '}';
    }
}
